package com.liuhuanss.voiceprint.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 声纹登录请求DTO
 * 
 * @author liuhuanss
 * @version 1.0
 */
public class VoiceprintLoginRequest {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 3, max = 50, message = "用户名长度必须在3-50个字符之间")
    private String username;

    @NotBlank(message = "音频数据不能为空")
    private String audioBase64;

    public VoiceprintLoginRequest() {
    }

    public VoiceprintLoginRequest(String username, String audioBase64) {
        this.username = username;
        this.audioBase64 = audioBase64;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAudioBase64() {
        return audioBase64;
    }

    public void setAudioBase64(String audioBase64) {
        this.audioBase64 = audioBase64;
    }

    @Override
    public String toString() {
        return "VoiceprintLoginRequest{" +
                "username='" + username + '\'' +
                ", audioBase64='[AUDIO_DATA]'" +
                '}';
    }
}